package com.banksoft.admin;

import com.banksoft.admin.bean.PaySetting;
import com.banksoft.admin.bean.WxSetting;

/**
 * Created by Administrator on 2015/12/22.
 */
public class SystemCache {

    public static final String SESSION_ADMIN = "ADMIN";

    public static final String SESSION_USER = "User";


    public static final String SESSION_YZM = "YZM";

    public static final int Default_PageSize = 20;

    public static final String SESSION_ROLE = "ROLE";

    //公众号
    public static final String AppId = "wx18f93a9a87f9b6f9";
    public static final String Secret = "6edbafd4ee346a1f5f4799513beff5b7";
    public static final String Template_Id = "PPMM7G00ndW_N10WWDiJJB9eMcEQC8xPtAgACREgNgQ";

    //支付
    //接口商户号
    public static final String accountNo = "wx18f93a9a87f9b6f9";
    //接口秘钥
    public static final String accountSecret = "6edbafd4ee346a1f5f4799513beff5b7";
    //支付合作者身份
    public static final String payNo = "1429690202";
    //支付Key
    public static final String payKey = "DWDW543543543fFDFD65765hhhgFDfde";

    //分享链接地址

    /**
     * 公众号设置
     * @return
     */
    public static WxSetting getWxSetting(){
        WxSetting setting = new WxSetting();
        setting.setAppId(AppId);
        setting.setAppSecret(Secret);
        return setting;
    }

    /**
     * 支付商户号设置
     * @return
     */
    public static PaySetting getPaySetting(){
        PaySetting setting = new PaySetting();
        setting.setAccountNo(accountNo);
        setting.setAccountSecret(accountSecret);
        setting.setPayNo(payNo);
        setting.setPayKey(payKey);
        setting.setAppId(AppId);
        return setting;
    }


}
